package com.atguigu.gulimall.search.thread;

/**
 * @author Angel
 * @email 11217304@gmail.com
 * @date 2021/9/5
 */
public class ThreadTest {
    public static void main(String[] args) {
        System.out.println("main......start.....");
        Thread thread = new Thread01();
        thread.start();
        System.out.println("main.....end......");
    }

    private static class Thread01 extends Thread {
        @Override
        public void run() {
            System.out.println("当前线程：" + Thread.currentThread().getId());
            int i = 10 / 2;
            System.out.println("运行结果：" + i);
        }
    }
}
